# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch>
pkgname=repo
pkgver=2.5
pkgrel=0
pkgdesc="repository management tool built on top of git"
url="https://gerrit.googlesource.com/git-repo"
arch="noarch"
license="Apache-2.0"
options="!check" # no tests upstream
depends="python3 py3-kerberos gnupg git"
makedepends="py3-setuptools"
source="https://storage.googleapis.com/git-repo-downloads/repo-$pkgver"
builddir="$srcdir"

prepare() {
	default_prepare
	sed -i 's|^#!/usr/bin/env python|#!/usr/bin/python3|' repo-$pkgver
}

package() {
	install -Dm 0755 repo-$pkgver "$pkgdir"/usr/bin/repo
}

sha512sums="36e515241fd9705c63beaf662309dc2ab6406552ba845fe020c878ac82e7eb7e1cd73924a076cf5fe4800ea70919bb5ad5d2d43566d5b0a559f81a45f9a58fe8  repo-2.5"
